home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 903 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: David Byrden <Goyra@iol.ie>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: double const declarations
  5. Date: 28 Mar 1996 21:16:20 GMT
  6. Organization: Ireland On-Line
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4jev2k$v60@nuacht.iol.ie>
  9. References: <Pine.A32.3.91.960325093715.29874A-100000@zorglub.cae.ca>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: dialup-193.dublin.iol.ie
  15. X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)
  16. X-Lines: 17
  17. Content-Length: 517
  18. Originator: clamage@taumet
  19.  
  20. dak <pierreba@poster.cae.ca> wrote:
  21.  
  22. >The problem arise when T is instantiated with a Container of constants:
  23. >
  24. >SmartPtr<const int> a;
  25. >
  26. >Here we have a double const which is not supported by the compiler, nor the
  27. >standard, I believe.  Is there a fix or should we abandon all hope of using
  28. >const returns in templates ?
  29.  
  30.  
  31.      Sheer common sense tell you that we have to allow this. It can arise 
  32. with 'volatile' as well. The Microsoft compiler gives just a warning.
  33.  
  34.                                        David
  35.  
  36.  
  37.  
  38.  
  39. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  40. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  41. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  42. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  43. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  44.